<div class="x_panel">
  <div class="x_content" style="display: block;">
    <!--表格主体内容-->
    <div class="nav navbar-right panel_toolbox">
      <a class="fa fa-plus" href="/article/add.html?article_type={$article_type}"> 添加</a>
    </div>
    <br><br>
    <div class="row-fluid">
      <form action="/article/{if $article_type==1}beautiful.html{elseif $article_type==2}hai-tao-library.html{elseif $article_type==3}study-tour.html{else}day-to-day.html{/if}" method="get">
        <div class="col-md-3 col-sm-3 col-xs-3">
          <label class="control-label">名称</label>
          <input type="text" class="form-control-new" name="form[article_title]" value="{if isset($query.article_title)}{$query.article_title}{/if}">
        </div>
        <button type="submit" class="btn btn-primary" style="">搜索</button>
      </form>
    </div>
    <br><br>
    <div class="cont">
      <table class="table table-bordered table-striped">
        <thead>
        <tr>
          <th width="100px">序号</th>
          <th>封面图</th>
          <th>名称</th>
          <th>创建时间</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $article.lists as $articleitem}
        <tr>
          <td>{$articleitem.article_id}</td>
          <td><img src="{$articleitem.article_pic}" width="50px" height="50px" /></td>
          <td>{$articleitem.article_title}</td>
          <td>{$articleitem.add_time}</td>
          <td>
            <div class="x_content">
              <a class="btn btn-primary btn-xs" href="{eval U(['article/edit','article_id'=>$articleitem.article_id])}"> 编辑</a>
              <button class="btn btn-danger btn-xs" data-toggle="dropdown">删除
                <i class="icon-angle-down"></i></button>
              <ul class="dropdown-menu">
                <li><a href="{eval U(['article/delete','article_id'=>$articleitem.article_id])}">确定</a></li>
                <li><a href="javascript:;">取消</a></li>
              </ul>
            </div>
          </td>
        </tr>
        {/foreach}
        </tbody>
      </table>
      <!--分页-->

      {Yii::$app->view->render('/com/pager.php',['pager'=>$article['pager']])}
    </div>
  </div>
</div>

